package com.easydisk.file.feignclient;

import com.easydisk.response.ApiResponse;
import com.easydisk.user.ShareUserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user-modules", url = "http://localhost:9093/user")
public interface UserFeignClient {

    /**
     * 获取分享的用户信息
     * @param userId
     */
    @GetMapping("/get/share/info")
    public ApiResponse<ShareUserInfoVO> getShareUserInfo(@RequestParam Long userId);
}